# Heroes Power Plant / Heroes Mod Loader - Generic Stage Injection Mod DLLs

These two Mod Loader mod main.dll files contain custom start position and spline injection mods which are loaded from the Config.cc file generated by Heroes Power Plant.

The difference between them is that the DLL in the Development folder contains additional code for re-replacing the mod files while the game is running; this means you can edit the files and see the changes ingame in real time (the files are replaced again every time you quit a stage). The DLL in the Release folder doesn't have this function, and the stage is injected into the game only once, since the players are not going to edit the files. While making your levels, use the Development DLL; while releasing them, use the Release DLL.

Each DLL will output a different message to the Mod Loader log, so you can know which one you're currently using.

Note that, in the Development DLL, splines are injected only once, so to see changes in them you must quit the game and open it again. Start positions and all other files will be replaced with the game running.

# To create a new Mod Loader mod:
1. Create a new folder under Mod-Loader-Mods with your mod's name
2. Create a new file called Mod.ini inside of it, you can copy it from another mod. Edit the file so it's your mod's name and author.
3. Place the main.dll in the folder too (either development or release)
4. Put the Config.cc and the Splines folder saved from Power Plant here too
5. Create a new folder called root here
6. Create a new folder called dvdroot under root
7. Place your new files under this new dvdroot, they will replace the ones in the game upon mod launch.
8. When editing the files with the game running, make sure you edit the ones in your mod folder, not the ones the actual game is using as those will be deleted once the game closes.